package com.qd.panda.gas.station.shell.req.last;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * 壳牌订单回执
 *
 * @author sjk
 * @create 2022-10-08 16:18
 * @since 1.0.0
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
@ToString
public class ShellPayNotifyReqDTO extends BaseReq {
    /**
     * 站点id
     */
    @JsonProperty("station_id")
    private Integer stationId;
    /**
     * 枪号
     */
    @JsonProperty("nozzle_number")
    private String nozzleNumber;
    /**
     * 油号
     */
    @JsonProperty("octane_number")
    private Integer octaneNumber;
    /**
     * 金额
     */
    @JsonProperty("total_amount")
    private BigDecimal totalAmount;
    /**
     * 实际支付金额
     */
    @JsonProperty("real_amount")
    private BigDecimal realAmount;
    /**
     * 第三方订单号
     */
    @JsonProperty("vendor_sn")
    private String vendorSn;
    /**
     * 支付手机号
     */
    @JsonProperty("mobile")
    private String mobile;

    @Override
    public void freeData() {
        this.stationId = null;
        this.nozzleNumber = null;
        this.octaneNumber = null;
        this.totalAmount = null;
        this.realAmount = null;
        this.vendorSn = null;
        this.mobile = null;
    }
}